<template>
  <div class="header">
    <div class="header-left">
      <div class="iconfont back-icon">&#xe624;</div>
    </div>
    <div class="header-input">
      <span class="iconfont">&#xe632;</span>
      输入城市/景点/游玩主题
    </div>
    <router-link to="/city">
      <div class="header-right">
        {{this.$store.state.city}}
        <span class="iconfont drop-down">&#xe771;</span>
      </div>
    </router-link>
  </div>
</template>

<script>
export default {
  name: 'Header'
}
</script>

<style lang="stylus" scoped>
  @import "~styles/varibles.styl"
  .header
    display: flex
    height:.86rem
    font-size: 0.16rem
    background-color: $bgColor
    color:#fff
    .header-left
      float: left
      width: .64rem
      line-height: .86rem
      .back-icon
        text-align:center
        font-size: .3rem
    .header-input
      flex:1
      height: .64rem
      line-height: .64rem
      margin-top: .12rem
      margin-left: .2rem
      padding-left : .2rem
      background: #fff
      border-radius 0.05rem
      color: #ccc
    .header-right
      float: right
      width: 1.24rem
      height: .86rem
      line-height: .86rem
      text-align:center
      color:#fff
      .drop-down
        font-size .1rem

</style>
